|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.DSS.Resource
javax.realtime.DSS.PriorityCeilingResource
A unit resource managed under a priority ceiling policy:
Field Summary | |
protected int |
priorityCeiling
The priority ceiling of this Resource |
Fields inherited from class javax.realtime.DSS.Resource |
busyTimeThusFar, count, creationTime, holderThread, lastGrant, lastRelease, name, signalPriorityInversion, waiters |
Constructor Summary | |
PriorityCeilingResource(java.lang.String name,
int priorityCeiling)
|
|
PriorityCeilingResource(java.lang.String name,
int priorityCeiling,
boolean signalPriorityInversion)
Constructor |
Method Summary | |
void |
adjustPriority(RealtimeThread thread)
Adjust the priority of this RealtimeThread , according to resources currently held. |
int |
getPriorityCeiling()
|
void |
release()
Release this resource. |
void |
seize()
Seize this resource, waiting if necessary. |
Methods inherited from class javax.realtime.DSS.Resource |
dutyCycle, finalize, getExtent, giveResourceTo, maxWaiterPriority, printAllStatistics, printStatistics, releaseIfHeld, seize, seizeIfNotHeld, setExtent, toString, waiterIterator |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int priorityCeiling
Resource
Constructor Detail |
public PriorityCeilingResource(java.lang.String name, int priorityCeiling, boolean signalPriorityInversion)
name
- the name of this resourcepriorityCeiling
- the priority ceiling of this resourcepublic PriorityCeilingResource(java.lang.String name, int priorityCeiling)
Method Detail |
public void seize() throws java.lang.InterruptedException, ThreadTerminatedException
seize
in class Resource
java.lang.InterruptedException
ThreadTerminatedException
public void release() throws ThreadTerminatedException
release
in class Resource
ThreadTerminatedException
public void adjustPriority(RealtimeThread thread)
Resource
RealtimeThread
, according to resources currently held.
adjustPriority
in class Resource
public int getPriorityCeiling()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |